package etp.client.rpc;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import etp.client.Tarefa;

@RemoteServiceRelativePath("rpc/tarefas")
public interface TarefaAdminService extends RemoteService{

		public String remover(String cod);
		
		public String modificar(String cod, Tarefa t);
		
		public String modificar(List<Tarefa> tarefas) throws Exception;
		
		public Tarefa cadastrar(Tarefa tar);

		public List<Tarefa> listar(); 
		
		public List<Tarefa> listarBy(int ord, String cod);
		
		public List<Tarefa> search(String filtros) throws Exception;
		
		public Date calcInitDate(Tarefa tarefa)throws Exception;

		public boolean validaDependencia(String codOrigem, String codDestino, String codProjeto);
	
}
